<?php

Class Home extends CI_Controller
{
	function __construct()
	{
		parent::__construct();
		$this->load->model('mprofile','',TRUE);
	}

	function index()
	{
		$this->tampil();
	}

	function tampil()
	{
		$ilc['username'] = $this->session->userdata('username');
		$ilc['profile']  = $this->mprofile->profile($ilc['username']);
        $ilc['title']    = "Home";
		$this->load->view('vhome',$ilc);
	}
}